package com.dslcode.cloud.common.model.order;

import com.dslcode.cloud.common.model.BaseModel;
import lombok.Data;

import java.math.BigDecimal;

/**
 * Created by dongsilin on 2017/9/21.
 */
@Data
public class OrderGoods extends BaseModel {

    private Long orderId;
    private Long goodsId;
    private String goodsName;
    private BigDecimal goodsPrice;
    private int goodsNum;
    private String goodsImage;
    private BigDecimal goodsPayPrice;
    private Long buyerId;
    private Integer goodsType;// 1默认2团购商品3限时折扣商品4组合套装5赠品
    private Boolean orderValid;

    public OrderGoods() {
    }

    public OrderGoods(Long orderId, Long goodsId, String goodsName, BigDecimal goodsPrice, int goodsNum, String goodsImage, BigDecimal goodsPayPrice, Long buyerId) {
        this.orderId = orderId;
        this.goodsId = goodsId;
        this.goodsName = goodsName;
        this.goodsPrice = goodsPrice;
        this.goodsNum = goodsNum;
        this.goodsImage = goodsImage;
        this.goodsPayPrice = goodsPayPrice;
        this.buyerId = buyerId;
        this.goodsType = 1;
        this.orderValid = true;
    }
}
